package com.lehecai.core.task.entity;

import com.lehecai.core.task.IAsyncTask;
import com.lehecai.core.task.entity.status.AsyncTaskStatus;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by qatang on 14-3-26.
 */
public class AsyncTaskItem implements Serializable {
    private Long id;
    private AsyncTaskStatus asyncTaskStatus;
    private Date createdTime;
    private Date sentTime;
    private Date receivedTime;
    private Date executingTime;
    private Date finishTime;
    private IAsyncTask asyncTask;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public AsyncTaskStatus getAsyncTaskStatus() {
        return asyncTaskStatus;
    }

    public void setAsyncTaskStatus(AsyncTaskStatus asyncTaskStatus) {
        this.asyncTaskStatus = asyncTaskStatus;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Date getSentTime() {
        return sentTime;
    }

    public void setSentTime(Date sentTime) {
        this.sentTime = sentTime;
    }

    public Date getReceivedTime() {
        return receivedTime;
    }

    public void setReceivedTime(Date receivedTime) {
        this.receivedTime = receivedTime;
    }

    public Date getExecutingTime() {
        return executingTime;
    }

    public void setExecutingTime(Date executingTime) {
        this.executingTime = executingTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public IAsyncTask getAsyncTask() {
        return asyncTask;
    }

    public void setAsyncTask(IAsyncTask asyncTask) {
        this.asyncTask = asyncTask;
    }
}
